#pragma once

class CDebugFile
{
    HANDLE m_hFile;
    CRITICAL_SECTION m_CriticalSection;
public:
    CDebugFile(LPCTSTR lpszFileName);
    ~CDebugFile();
    void WriteLog(LPCTSTR lpszFormat, ...); 
};